export class IndexService {
  constructor() {}
  getPayload(tools, pager, startIndex, endIndex) {
    return {
      content: tools.slice(startIndex, endIndex),
      size: pager.size,
      totalElements: tools.length,
      number: pager.number
    };
  }
}
